﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Student: Person
    {
        private string major;
        private int grade;
        public string Major
        {
            get { return this.major; }
            set { this.major = value; }
        }
        public int Grade
        {
            get { return this.grade; }
            set { this.grade = value; }
        }
        public void Print()
        {
            this.Id = 1;
            this.Name = "小明";
            this.Sex = "男";
            this.Cardid = 11011010;
            this.Tel = 48856;
            this.major = "蓝翔挖掘机";
            this.grade = 3;
        }
        public Student(string name) {
            Print();
            Console.WriteLine(this.Id);
            Console.WriteLine(this.Name);
            Console.WriteLine(this.Sex);
            Console.WriteLine(this.Cardid);
            Console.WriteLine(this.Tel);
            Console.WriteLine(this.major);
            Console.WriteLine(this.grade);

        }

    }
}
